x86/acpi: use FADT flags to determine the PMTMR width
authorGrzegorz Uriasz <gorbak25@gmail.com>
Thu, 25 Jun 2020 07:11:09 +0000 (09:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Jun 2020 07:11:09 +0000 (09:11 +0200)
commitf325d2477eef8229c47d97031d314629521c70ab
tree1a6524a75acbeaebf0b512537b22b476c731f442
parentfde76f895d0aa817a1207d844d793239c6639bc6
x86/acpi: use FADT flags to determine the PMTMR width

On some computers the bit width of the PM Timer as reported
by ACPI is 32 bits when in fact the FADT flags report correctly
that the timer is 24 bits wide. On affected machines such as the
ASUS FX504GM and never gaming laptops this results in the inability
to resume the machine from suspend. Without this patch suspend is
broken on affected machines and even if a machine manages to resume
correctly then the kernel time and xen timers are trashed.

Signed-off-by: Grzegorz Uriasz <gorbak25@gmail.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Paul Durrant <paul@xen.org>
xen/arch/x86/acpi/boot.c
xen/arch/x86/time.c
xen/include/acpi/acmacros.h